package com.hg.design.structure.adapter.mine;

/**
 * @Auther: HG
 * @Date: 2021/3/5 17:01
 * @Description: 使用美国电力适配器
 */
public class AmericaAdapter implements Power {
    private AmericaPower power;

    public AmericaAdapter() {
        System.out.println("使用美国电压适配器");
        this.power = new AmericaPower();
    }

    @Override
    public int getVoltage() {
        return this.power.getVoltage();
    }

    @Override
    public void plugIn() {
        this.power.plugIn();
    }
}
